measure execution time with dxl

Hey all,
I have a small problem and unfortunatly I was not able to find a solution until now

What I am looking for is a little script that opens all modules in a project in view-mode and
measures the execution time.

I hope that somebody could help me!

with best regards
Clemens
WorkingStudent - Thu Sep 29 08:56:20 EDT 2011

Re: measure execution time with dxl
Mathias Mamsch - Fri Sep 30 10:22:36 EDT 2011

Well you could use the "getTickCount_" function to measure the time:
 

int start = getTickCount_ () 
   read ("/Folder/MyModule", true) 
   int end = getTickCount_() - start
   print (end-start) " milliseconds have passed!"

 


Maybe that helps, regards, Mathias

 

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

 

 

Re: measure execution time with dxl
WorkingStudent - Tue Oct 04 05:24:11 EDT 2011

Thats´s exactly what I was looking for!
thank you very much!
Regards,
Clemens

Re: measure execution time with dxl
llandale - Tue Oct 04 11:40:39 EDT 2011

WorkingStudent - Tue Oct 04 05:24:11 EDT 2011
Thats´s exactly what I was looking for!
thank you very much!
Regards,
Clemens

int iStart = getTickCount_()
gets the current milliseconds (I think since you logged into your computer but that doesn't matter)

int iStart = intOf(today())
gets the current second (actually since the beginning of DOORS time which I think is 1970 Jan 01 12:00:00am, but again that doesn't matter)

intOf(today()) has a Date purpose, try this:

print today() "\n" // Looks like "Wednesday 5 July 2011"
print (dateOf(intOf(today()))) "\n" // looks like "05/07/11 08:22:45"
  • Louie